package com.gxa.pojo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "权限的实体")
public class Permission {
  @ApiModelProperty(name = "permission_id" ,notes = "权限的id",dataType = "Integer" ,required = true)
  private Integer permission_id;
  @ApiModelProperty(name = "title" ,notes = "菜单名称",dataType = "String" ,required = true)
  private String title;
  @ApiModelProperty(name = "pid" ,notes = "父级的id",dataType = "Integer" ,required = true)
  private Integer pid;
  @ApiModelProperty(name = "url" ,notes = "每个二级菜单的url",dataType = "String" ,required = true)
  private String url;
  @ApiModelProperty(name = "type" ,notes = "每个级菜单的类型（1代表一级菜单，2代表二级菜单）",dataType = "Integer" ,required = true)
  private Integer type;
  @ApiModelProperty(name = "icon" ,notes = "每个级菜单的的图标地址",dataType = "String" ,required = true)
  private  String icon;
  @ApiModelProperty(name = "sort" ,notes = "每个二级菜单的顺序",dataType = "Integer" ,required = true)
  private  Integer sort;
  @ApiModelProperty(name = "remark" ,notes = "每个级菜单的备注",dataType = "String" ,required = true)
  private  String remark;

  public Integer getPermission_id() {
    return permission_id;
  }

  public void setPermission_id(Integer permission_id) {
    this.permission_id = permission_id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public Permission() {
  }

  public Permission(Integer permission_id, String title, Integer pid, String url, Integer type, String icon, Integer sort, String remark) {
    this.permission_id = permission_id;
    this.title = title;
    this.pid = pid;
    this.url = url;
    this.type = type;
    this.icon = icon;
    this.sort = sort;
    this.remark = remark;
  }

  @Override
  public String toString() {
    return "Permission{" +
            "permission_id=" + permission_id +
            ", title='" + title + '\'' +
            ", pid=" + pid +
            ", url='" + url + '\'' +
            ", type=" + type +
            ", icon='" + icon + '\'' +
            ", sort=" + sort +
            ", remark='" + remark + '\'' +
            '}';
  }
}
